package com.zhiliao.intermediary.tradition;

/**
 * 作者： zhi-liao
 * 类的作用:
 * 类的创建时间： 2021/5/23 15:30
 */
public class Client {
    public static void main(String[] args) {
        AbstractColleague colleagueA = new ColleagueA();
        AbstractColleague colleagueB = new ColleagueB();

        System.out.println("===设置A影响B===");
        colleagueA.setNumber(10000, colleagueB);
        System.out.println(colleagueA.getNumber());
        System.out.println(colleagueB.getNumber());
    }
}
